package entidades;

import java.io.Serializable;
import javax.persistence.*;
import java.util.List;


/**
 * The persistent class for the tiposala database table.
 * 
 */
@Entity
@Table(name="tiposala")
public class Tiposala implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private String id;

	private String nombre;

	//bi-directional many-to-one association to Sala
	@OneToMany(mappedBy="tiposala", fetch=FetchType.EAGER)
	private List<Sala> salas;

    public Tiposala() {
    }

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getNombre() {
		return this.nombre;
	}

	public void setNombre(String nombre) {
		this.nombre = nombre;
	}

	public List<Sala> getSalas() {
		return this.salas;
	}

	public void setSalas(List<Sala> salas) {
		this.salas = salas;
	}
	
}